package com.hqyj.demo.service.impl;
import com.hqyj.demo.entity.Menu;
import com.hqyj.demo.mapper.MenuMapper;
import com.hqyj.demo.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhouwenjun
 * @since 2022-10-10
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {

    @Autowired
    private MenuMapper menuMapper;
    @Override
    public List<Menu> menuList(Integer adminId) {
        return menuMapper.menuList(adminId);
    }

    @Override
    public List<Menu> allMenuList() {
        return menuMapper.allMenuList();
    }
}
